﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace AngelPerez.Taringa.PostEdit {
	public class PEContarol : Control {
		protected bool _selected = false;
		protected bool _moving = false;

		public bool Selected {
			get { return _selected; }
			set { _selected = value; }
		}

		public bool Moving {
			get { return _moving; }
			set { _moving = value;  }
		}

		protected override void OnPaint(PaintEventArgs e) {
			if (this.Selected) {
				e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(128, SystemColors.Highlight)), this.Bounds);
				e.Graphics.DrawRectangle(new Pen(new SolidBrush(Color.FromArgb(200, SystemColors.Highlight))), this.Bounds);
			}

			base.OnPaint(e);
		}
	}
}
